const {register,login,avatar,getAll} = require("../controller/user")
const {auth,equal} = require("../middlewares/middlewares")
module.exports = function (userRouter) {
    userRouter.post("/register",register);
    userRouter.post("/login",login);
    userRouter.post("/avatar/:userId",auth,equal,avatar);
    userRouter.get("/getAll",getAll);
}